extends Label

var pick_up
var scores: int = 0
var total_pick_up: int = 0

func _ready() -> void:
	total_pick_up = get_tree().get_nodes_in_group("pick_up").size()
	update_score(scores, total_pick_up)
	
func update_score(score, total):
	text = "Collection: " + str(score) + "/" + str(total)

func add():
	scores += 1
	update_score(scores, total_pick_up)
